class UrlMappings {

    static mappings = {

        "/$userType/registration" {
            constraints {
                userType inList: ['client', 'provider']
            }
            controller = 'Master'
            action = 'registration'
        }

        name listOpenOrders: "/listOpenOrders" {
            controller = 'provider'
            action = 'listOpenOrders'
        }

        name providerAction: "/$controller/$action/$id" {

        }

        "/loggedin"(view: 'master/userLoggedIn')
        "/"(controller: 'master')
        "500"(view: '/error')
    }
}
